rust-code-analysis icon indicating copy to clipboard operation
rust-code-analysis copied to clipboard

Add more integration tests for the lib

Open Luni-4 opened this issue 5 years ago • 2 comments

We should add more integration tests for the languages we are already providing in the lib

Luni-4 avatar Dec 03 '20 10:12 Luni-4

We could create a data directory containing a subdirectory for each programming language. Then, in each of this subdirectories, it is present a repository of a medium-size project. For example:

and so on

Each repository is pinned to a specific version and they are treated as git submodules.

The tests directory contains an integration test for each subdirectory and it can verify different properties:

  • See whether the metrics are computed and their comparison is correct
  • See if a project does not contain error nodes

Luni-4 avatar Nov 16 '21 08:11 Luni-4

#724 added integration tests for the following languages:

  • Rust
  • JavaScript
  • C/C++

Other integration tests need to be added:

  • [ ] Java
  • [ ] TypeScript
  • [ ] Python

Luni-4 avatar Jan 19 '22 11:01 Luni-4