New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart Testing should run with project which has SCM setup, but doesn't have single commit #217

Closed
dipak-pawar opened this Issue Oct 10, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@dipak-pawar
Contributor

dipak-pawar commented Oct 10, 2017

Issue Overview

Smart testing should not fail if user is trying to run test with Smart Testing in project which doesn't have single commit.

Expected Behavior

ST should be smart enough to determine there is not even single commit. Consider all changes as local & apply test optimization if any.

Current Behavior

Getting exception as org.apache.maven.InternalErrorException: Internal error: java.lang.IllegalArgumentException: Commit id 'HEAD~0' is not found in /home/dipak/test-team/configuration-file-demo/.git Git repository

Steps To Reproduce
  1. Create simple project to which you want to apply Smart Testing.
  2. Install smart testing extension using curl -sSL https://git.io/v5jy6 | bash
  3. Do scm setup using git init
  4. Run test using mvn clean test -Dsmart.testing.strategies=new

Note: Due to this user can't execute any maven lifecycle goal like(mvn clean) as it's failing with some exception in smart testing extension before reaching to other maven lifecycle

@MatousJobanek

This comment has been minimized.

Show comment
Hide comment
@MatousJobanek

MatousJobanek Oct 10, 2017

Contributor

nice catch!
The behavior would be same as for: #216 - there should be some error printed on the console containing that the scm information is not available and some strategies cannot be used.

Contributor

MatousJobanek commented Oct 10, 2017

nice catch!
The behavior would be same as for: #216 - there should be some error printed on the console containing that the scm information is not available and some strategies cannot be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment