tree: 7c72225919164b77f1bc1a720a2fc45c3e03e2c9 [path history] [tgz]
  1. jackson_core_test/
  2. kotlin_test/
  3. simple_package_test/
  4. test_util/
  5. .gitignore
  6. bindings_test.dart
  7. config_test.dart
  8. dart_generator_test.dart
  9. package_resolver_test.dart
  10. README.md
  11. regenerate_examples_test.dart
  12. summary_generation_test.dart
  13. yaml_config_test.dart
pkgs/jnigen/test/README.md

Some notes about tests in this directory:

  • jackson_core_test is an end-to-end test which generates bindings for jackson_core library using the whole jnigen pipeline and compares the generated bindings with expected bindings. simple_package_test is similar but instead of using a Java library from maven, uses a stub java class.
  • bindings_test.dart runs the generated bindings to make sure they work. There are only a few tests here right now.
  • test_util/ directory contains some code common to both jackson_core_test and simple_package_test. (Especially the functions generateAndCompareBindings and generateAndAnalyzeBindings).
  • yaml_config_test.dart runs the same jackson_core configuration but through YAML and makes sure it generates the same bindings.
  • The other files contain unit tests for some error-prone components.

Note: Tests fail if summarizer is not previously built and 2 tests try to build it concurrently. We have to address it using a lock file and exponential backoff (#43). Temporarily, run dart run jnigen:setup before running tests for the first time.

TODO(#62): Add some unit & integration tests in the java portion.