amzn/smoke-framework

Add integration/pull request CI testing for Smoke Framework

Closed this issue · 8 comments

Description

Add integration tests for the framework

Exit criteria

The integration tests should-

  • pull the latest version of the code or the pull request being submitted
  • build the code, run tests and SwiftLint
  • Build the change into an example application, make sure application compiles and starts up
  • Hit an endpoint on the sample application and verify expected result was returned.

@tachyonics I'm interested to help in this.

@meguid Thanks for the help. I'd be interested in any thoughts you have on the best approach. I was thinking of suggesting going with AWS CodeBuild as that is what I know but I'd be happy to look at other options.

@tachyonics I'm not familiar with CodeBuild, but I think Travis CI have better community support and free for open source projects.

Sorry for taking so long for getting back on this. Looks like Travis CI is the better option. I have requested that it be installed on our repositories and then we can set it up.

Thanks. I've added a basic CI integration that compiles and runs the tests and SwiftLint to confirm that it is working. If you'd like to look at what else can be added that would be great!

I checked the CITests script and the travis file and I see they're great.

I think it'd be better if we applied a test coverage minimum percentage on code, and also I think it'd be better if we limited the "disabled_rules" a bit in Swiftlint and installed it in an "install" step in travis not in the "run" script.

Those sound good ideas. Is there anything you need from me to look further into this?