Hi,

In an effort to keep the Avocado code base lean and clean, we're
looking at features that have a negative impact in the architecture
and future maintenance, and can be replaced by other more solid
features.

Among those is the "standalone job" feature, which has to do with
the ability to embed a job execution within a test file.  When you
write code such as:

   #!/usr/bin/env python
   from avocado import main
   from avocado import Test

   class PassTest(Test):
      def test(self):
         pass

   if __name__ == "__main__":
       main()

The `main()` call is really an instantiation and execution of a
`avocado.core.Job`.  While it looks neat here, the implementation
is awkward.  The idea is to deprecate this feature, in favor of
an opposite approach: job files (using the soon to be supported
Job API), with embedded tests.  For an example, please refer to:

  https://github.com/avocado-framework/avocado/pull/3837

Besides a heads up, this is a call for users and use cases that
may justify *not* deprecating and removing this.

Thanks,
- Cleber.

Attachment: signature.asc
Description: PGP signature

Reply via email to