Testrecorder provides and easy way to generate characterizing unit tests (not integration tests!) by just recording interactions of a running system.
For more detailed information visit the Testrecorder project page.
Some more Documentation (Work in Progress)
- An Introduction to the Testrecorder Architecture
- Tuning the Output of Testrecorder
- Excluding Objects from Recording
- Recording Input/Output
- Recording Enterprise Java
- Using the Testrecorder-API to serialize data and generate code
- Extending Testrecorder with Custom Components
Examples can be found at testrecorder-examples
Some additional notes ...
The objective of Testrecorder is to provide an interface that is powerful, clean and extensible. To achieve this we will provide more and more configuration settings to extend the core framework. The fact that tests are generated automatically might rise wrong expectations: Testrecorder will probably always be an experts tool, meaning strong programming and debug skills are recommended to find the correct configuration and the necessary custom extensions.
Testrecorder was not yet tested on a large set of code examples. Some classes are not as easy to serialize as others, so if you encounter problems, try to write an issue. Hopefully - most fixes to such problems should be solvable with custom serializers or custom deserializers.
<dependency> <groupId>net.amygdalum</groupId> <artifactId>testrecorder-agent</artifactId> <version>0.8.1</version> </dependency>
<dependency> <groupId>net.amygdalum</groupId> <artifactId>testrecorder-runtime</artifactId> <version>0.8.1</version> </dependency>