A bipartisan Senate bill revising the No Child Left Behind law, and eliminating many of its most punitive elements, was announced on Tuesday.

The bill retains the requirement for yearly tests in math and reading for every student in third through eighth grade, and once in high school, and requires that the scores, broken down by race and income, be made public.

But it ends the framework under which almost all public schools were found to be failing, and could defuse what has become an all-out campaign by teachers, joined by many parents, to prevent having their job performances measured by students’ test scores.

The proposed legislation was negotiated by Senators Lamar Alexander, Republican of Tennessee, and Patty Murray, Democrat of Washington. Earlier this year, a House bill was abruptly pulled, mid-debate, when it became clear that it would not muster enough Republican support to pass.