GithubHelp home page GithubHelp logo

alexxnica / spacewalk-testsuite-base Goto Github PK

View Code? Open in Web Editor NEW

This project forked from suse/spacewalk-testsuite-base

0.0 1.0 0.0 54.66 MB

Spacewalk & SUSE Manager automated testsuite

License: MIT License

Ruby 37.19% Gherkin 62.81%

spacewalk-testsuite-base's Introduction

Spacewalk Testsuite

Master Build Status Master branch Manager 30 Build Status Master branch

Introduction

Welcome ! This is the Testsuite to automatically test Suse-Manager/Spacewalk.

How to Contribute.

CREATE always a PR, first against MASTER. After that, create a PR for other branches, if needed for backport the feature.

0) Make a good commit message:

https://gist.github.com/matthewhudson/1475276 It is description by Linus Torvalds about how a good commit message should look like. Of course it needs to be taken with "salt", there is no need for a paragraph on every commit, but a good headline is always a must, and sometimes taking the time to explain design decisions and anything in the head of the committer in the rest of the paragraph is still a good idea.

0 b) Avoid extra commits.

Use git rebase -i locally

If you commit to save temp work and be able to revert, before you "git push" (because you can't do rebase afterwards) do a git interactive rebase and reorder, swap, and merge various commits into one. They should end as well-described units of work that are independent from each other. If a bugfix requires two commits and it is not usable without both, then it is a good idea to make the two commits a single one, unless one of the fixes makes sense as its own.

1) Steps should be grouped by topic and not by feature.

Steps files should be like:

Creating users
Navigation
Running commands
Salt

2) Reuse steps, don't create new if you don't need them.

3) Check the code coverage results, after you runned the testsuite with your code.

Howto check code coverage

Usefull tutorial infos:

Testing-api tutorial, Branches that we use

Debug, Pitfalls-test.md

Running

You can run the Spacewalk Testsuite:

Tests order:

The tests are ordered and executed with the order of this yaml file:

https://github.com/SUSE/spacewalk-testsuite-base/blob/master/run_sets/testsuite.yml

Custom feature run sets

Add a file into run_sets/$name.yml and then execute rake cucumber:$name.

At moment we support only one, this is the refhost (smoke tests set)

RE/Run single feature

On the control-node modify the vi /usr/bin/run-testsuite. The file has per default already the needed hostname set.

#!/bin/bash

export SSHMINION=..
export CENTOSMINION=your.minion.tf.local
export TESTHOST=..
export CLIENT=..
export MINION=..
export BROWSER=phantomjs

cd /root/spacewalk-testsuite-base
cucumber features/MY_FEATURE_NAME
  • The testsuite is licensed under the MIT license. See the MIT-LICENSE.txt file included in the distribution.

spacewalk-testsuite-base's People

Contributors

mallozup avatar mcalmer avatar dmacvicar avatar renner avatar ugansert avatar meaksh avatar moio avatar mantel avatar mbologna avatar vpereira avatar kkaempf avatar bischoff avatar mallozen avatar mlandres avatar flavio avatar cbbayburt avatar isbm avatar ncounter avatar kilian-petsch avatar hustodemon avatar iartarisi avatar lucidd avatar

Watchers

 avatar

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.