GithubHelp home page GithubHelp logo

kute's People

Contributors

onewhl avatar raipc avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

kute's Issues

Add parameterized tests heuristics

Now, the heuristics works for JUnit5 only (looks at @ParameterizedTest annotation)
For JUnit 4, the following ways are possible:

  • class with @RunWith(Parameterized.class) annotation
  • with JUnitParams dependency: class has @RunWith(JUnitParamsRunner.class) annotation, methods have @Parameters(...) annotation
  • with junit-dataprovider-core dependency: class has @RunWith(DataProviderRunner.class) annotation, methods have @UseDataProvider(...) annotation

For TestNG:

  • methods annotated with @Parameters(...)
  • methods annotated with @Test(dataProvider=...)

JSON result formatting

Currently, JSON content is printed in a large single line, which makes troubles on most text editors when opening result.json.
I suggest to separate entries by CRLF separator

Analyze ignored tests

Currently, we exclude tests with Disabled or Ignored annotation from analysis. Instead, let's add a feature disabled to TestMethodInfo

Wrong formatting for the function OutputStream.writeCsv

This uses , and ; (when you append newLine) to form csv output, but method body could contains ,;/n an so on.

I see a few possible solutions here

  1. Strictly control the delimiters: it should be unique and never be used in the Java code as a symbol
  2. Encode the body to the base64 or another String code which doesn't contain standard csv delimiters
  3. Exclude the body collection

Support name convention-based test runners

Old JUnit projects (pre-annotation time) used name convention to detect methods to be executed as test. It may be useful to support this heuristics beside annotation-based, so we could analyze historical projects

Support cross-module tests

In some projects, tests are located in a separate module. Provide a way to map source class in the other module

Other languages support

Investigate the possibility to parse tests written in other languages

  • Kotlin
  • Groovy
  • Scala

Fix display name extraction

Display name should be taken from the content of DisplayName annotation from JUnit5 or similar annotation from Allure framework

Add GUI to run experiments

There are a few versions to build a GUI:

  1. SWING
  2. JavaFX
  3. Compose for Desktop
  4. Some simple pure HTML pages run behind the KTor (probably could be set up on the ML Server)

Add debug logging for test collection

Now we could not track the progress of test handling.

I suggest adding some logger calls with DEBUG level for the tracking what unit tests were discovered and visited, probably processed modules and some stats ร  la (100/11000 were processed)

Fix comment extraction

JavaParser allows to bind only a single line comment to a method. Provide a way to collect siblings

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.