question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refactor CI/CD testing

See original GitHub issue

The automated unit tests would benefit from:

  • Cleaning and restructuring
  • Migrating appveyor Windows builds to GitHub Actions
  • Separating standard tests that are run on every PR and accuracy tests that are run periodically (cron jobs)
  • Combine basic API tests on fitted objects to avoid having to call fit multiple times
  • Making them importable from other packages (see https://github.com/pytest-dev/pytest/issues/421)
  • Making them run on objects rather than classes (see #1027)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
TonyBagnallcommented, Jun 23, 2021

I would like a mapping overview of all the testing that goes on in sktime, then work towards a simple guide to tests, where to put them, what to test for each module etc etc. Improving classifier testing (removing excluded etc) is a mid term goal for me, but its more likely to happen sooner if its easier and intuitive to do

1reaction
Lovkush-Acommented, Jul 2, 2021

Been skimming through some of Ted Kaminski’s essays on software engineering, and in this one https://www.tedinski.com/2018/05/01/designing-imperative-code-with-properties-in-mind.html they argue for ‘property testing’ and recommend the package Hypothesis. From hypothesis homepage:

Think of a normal unit test as being something like the following:

  • Set up some data.
  • Perform some operations on the data.
  • Assert something about the result.

Hypothesis lets you write tests which instead look like this:

  • For all data matching some specification.
  • Perform some operations on the data.
  • Assert something about the result.

(Apologies - I realise I am not directly helping with the key steps given in the issue description, but this seems like best place to share knowledge about unittests)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cloud Modernization After Refactoring: A Continuous Process
Modernization after refactoring is an ongoing process. ... CodeBuild is a CI/CD tool that compiles code, runs tests, and generates ...
Read more >
The complete CI/CD Setup (Part 6 - Pipeline refactoring)
In this series of blog posts I'll describe how to setup and deploy a complete CI/CD pipeline on Kubernetes.
Read more >
Best way to create a Ci/CD pipeline to reduce bugs and ...
If possible, I would use Docker. Also, use Docker to specify build and (smoke) test environment. Check the manual for multistage Docker files....
Read more >
Refactoring guide - GitLab Docs
This document is a collection of techniques and best practices to consider while performing a refactor. Pinning tests. Pinning tests help you ensure...
Read more >
Functional Test Refactoring: Introduction | by Zhimin Zhan
In this article, I will show you how to set up a CT server from scratch to run a set of Selenium WebDriver…...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found