Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Acceptance CI tests #136

Closed
njam opened this issue Dec 1, 2015 · 6 comments
Closed

Acceptance CI tests #136

njam opened this issue Dec 1, 2015 · 6 comments
Milestone

Comments

@njam
Copy link
Contributor

njam commented Dec 1, 2015

Would be great is to have some acceptance tests, because a lot of the problems are dependent on the host or guest OS' particularities. Of course those can't run on travis.

Is there another free CI service that allows to run Virtualbox VMs?
Otherwise we could look into running a jenkins on some dedicated hosting.

@fh
Copy link
Contributor

fh commented Dec 1, 2015

@njam This is rather complicated - the basic reason here is that most (at least all I am aware of) run their tests in a container of some sort, and you cant start a vagrant virtualization within an already virtualized env). At work, we currently develop some sort of "CI" for vagrant running on a normal root server - while this could technically work, it obviously wont be free.

As a first step, we maybe could still shell out those tests to be able to work in the respective dev env, and then later test ideas how to run them in a CI env?

@fh
Copy link
Contributor

fh commented Dec 6, 2015

Just ran into https://github.com/mitchellh/vagrant-spec - maybe thats worth looking into?

@njam
Copy link
Contributor Author

njam commented Dec 6, 2015

Thanks for the link! I started to draft two different options:

cucumber: #182

  • + Good docu, community, support
  • + Can run scenarios with different environments (providers, boxes) - "Scenario Outline"
  • - Test isolation needs to be done manually after each test (vagrant destroy)

vagrant-spec: #145

  • + Explicitly for vagrant, robust test isolation
  • - Outdated and only little docu or examples
  • - Can't find good way to run test in different environments

I would rather go with cucumber. What do you think? Or we should go a completely different way?

@fh
Copy link
Contributor

fh commented Dec 6, 2015

Wow, using cucumber here is a cool idea. Totally up for giving it a shot.

@fh
Copy link
Contributor

fh commented Dec 27, 2015

@njam So, finally was able to resolve my vagrant issues, and gave both approaches a shot. However, the cucumber version still seems not to be fully working, some test cases fail (details in the pr).

I agree with your assessment on vagrant-spec, though, it seems to be not that well suited for our cases here. I would suggest to close the vagrant-spec pr, and focus on cucumber, to get it in a better/fully running state. Not sure how to get this running within travis since a vm cant run in a vm, but maybe we can come up with another solution for a CI env.

What do you think, how should we proceed from here?

@hferentschik
Copy link
Contributor

Merged pull request #182.

hferentschik added a commit that referenced this issue May 13, 2016
@hferentschik hferentschik added this to the v1.0.0 milestone May 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants