Skip to content

Latest commit

 

History

History
103 lines (64 loc) · 2.2 KB

File metadata and controls

103 lines (64 loc) · 2.2 KB

Devops-Metazord-Dockerize

This project is currently in development and is only for educational purposes. Happy Coding !

Warning : This project is still WIP !!!

Get Started locally

To get started, clone this repository using :

  git clone https://github.com/IM-TECHNO/devops-meta.git
  cd devops-meta

Install all the dependencies using pip :

  pip install -r requirements.txt

Then, start the webserver using :

  python main.py

Installation with Docker

Clone this repository :

  git clone https://github.com/IM-TECHNO/devops-meta.git
  cd devops-meta

Build using docker build :

    docker build --no-cache -t metazord-devops .

Run using docker run on port 5005 :

    docker run -p 5005:5005 metazord-devops

Running Tests

  • Before running any tests, create a 'reports' directory in the 'TestCase' folder. To run tests, run the following command :
  cd TestCase
  pytest -s -v testcase.py --disable-warnings --alluredir=reports

After completion, you can now view the report using :

  allure serve reports

NOTE : you may need to install Allure Command Line Tool and add it to your path.

Setting up Jenkins

  • Create a new Free-Style project with a title.
  • In the General>Advanced, enable 'Use custom workspace' and enter the project directory
  • In Build steps, select 'Execute a Windows batch command and enter the commands given below'
  call .\venv\Scripts\activate.bat
  pytest -s -v --disable-warnings --alluredir=reports TestCase\testcase.py
  • Select 'Post-build actions and select 'Allure Report'
  • In the path field, enter 'reports'
  • Click apply and you're done.

Roadmap

  • Additional browser support

  • Fully automate Jenkins deployment

License

MIT License

Authors